/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const blogRouter = {
  path: '/blog',
  component: Layout,
  redirect: '/blog/complex-blog',
  name: 'Blog',
  alwaysShow: true,
  meta: {
    title: 'Blog',
    icon: 'documentation'
  },
  children: [
    {
      path: 'complex-blog',
      component: () => import('@/views/blog/complex-blog'),
      name: 'ComplexBlog',
      meta: { title: 'complexBlog' }
    },
    {
      path: 'create',
      component: () => import('@/views/blog/create'),
      name: 'CreateBlog',
      meta: { title: 'createBlog', icon: 'edit' }
    },
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/blog/edit'),
      name: 'EditBlog',
      meta: { title: 'editBlog', noCache: true, activeMenu: '/blog/list' },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/blog/list'),
      name: 'BlogList',
      meta: { title: 'blogList', icon: 'list' }
    }
  ]
}
export default blogRouter
